<!DOCTYPE html>
<html>
	<head>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1" />
		<meta charset="UTF-8">
		<meta name="format-detection" content="telephone=no" />
		<title></title>
		<script type="text/javascript" src="__TMPL__/public/assets/js/flexible.js" ></script>
		<link rel="stylesheet" href="__TMPL__/public/assets/css/all_page.css" />
		<link rel="stylesheet" href="__TMPL__/public/assets/css/public.css" />
		<style>
			
		</style>
	</head>
	<body>
		
		<div class="reserve reserveBG">
			<div class="head" style="background: url({:cmf_get_image_url($img['img'])}) no-repeat;background-size: 100% 100%;">
				<p>预定列表</p>
			</div>
			<div class="reDatil div_float">
				<img class="l" src="__TMPL__/public/assets/images/y3.png" />
				<div class="msg">
					<div class="til">
						<label>会议主题：</label>
						<p class="jTil">{$info['theme']}</p>
						<p class="state dsBg">待审核</p>
					</div>
					<div class="Cn">
						<p>会议场所：{$info['title']}</p>
						<php>$type = ['1'=>"彩排",'2'=>"会议",'3'=>"演出",'4'=>"布场"];</php>
						<if condition="$info['type'] neq 0">
							<p>会议类型：{$type[$info['type']]}</p>
						</if>
						<p>会议人数：{$info['num']}人</p>
						<p>预定时间：{:date('m-d H:00',$info['start_time'])}-{:date('H:00',$info['end_time'])}</p>
						<p>预定部门：{$info['name']}</p>
						<p>预  定  人：{$info['user_login']}</p>
						<p>联系电话：{$info['mobile']}</p>
						<p>备注 ：{$info['remark']}</p>
						<php>$status = ['0'=>"否",'1'=>"是"];</php>
						<p>是否纯净水：{$status[$info['is_water']]}</p>
						<if condition="$info['layout'] neq 0">
						<p>主席台布置：{$status[$info['is_layout']]}</p>
						</if>
					</div>
					<div class="btm">
						<a style="display: inline-block;" href="javascript:ckeck({:input('id')},1);"><p class="tgBg">通过</p></a>
						<p onclick="javascript:ckeck({:input('id')},2);">不通过</p>
					</div>
				</div>
			</div>
			
			<!--公共底部-->
			<include file='public@footer'/>
		</div>
		
	
	<script type="text/javascript" src="__TMPL__/public/assets/js/jquery-1.8.3.js" ></script>
	<script type="text/javascript" src="__TMPL__/public/assets/js/js.js" ></script>
	<script>

		var ckeck = function (id,ckeck) {

				if(window.confirm("确定吗？"))
				{
					$.ajax({ 
						url: "{:url('checkPost')}", 
						type:"POST",
						data: {
							id:id,
							status:ckeck,
						},
						dataType:"json",
						success: function(data){
				    		if (data.status==1) {
				    			alert(data.msg);
				    			window.location.href=data.url;
				    		}else{
				    			alert(data,msg);
				    		}
				   		} ,
				   		error:function(){
				   			alert("网络异常");
				   		}
				   	});
				}
				else
				{
					return false;
				}
			
			
		};
	</script>
	</body>
</html>
